export default {
    BANNER: {
        name: '头部宣传位',
        config: [{
            label: '上传图片',
            type: 'image',
            required: true,
            code: 'image_path'
        }, {
            label: '活动规则文字颜色',
            type: 'color',
            code: 'text_color'
        }, {
            label: '活动规则按钮颜色',
            type: 'color',
            code: 'button_color'
        }, {
            label: '亲密值文字颜色',
            type: 'color',
            code: 'account_text_color'
        }, {
            label: '亲密值背景颜色',
            type: 'color',
            code: 'account_background'
        }],
        data: {
            image_path: '',
            text_color: '',
            button_color: ''
        },
        rule: {
            image_path: [{ required: true, message: '请上传图片' }]
        }
    },
    
    IMAGE: {
        name: '图片',
        config: [{
            label: '上传图片',
            type: 'image',
            required: true,
            code: 'image_path'
        }, {
            label: '链接地址',
            type: 'input',
            code: 'link_path'
        }],
        data: {
            image_path: '',
            link_path: ''
        },
        rule: {
            image_path: [{ required: true, message: '请上传图片' }]
        }
    },
    
    COUPON: {
        name: '优惠券',
        config: [{
            label: '关联活动',
            type: 'select',
            options: 'couponActivity',
            required: true,
            code: 'activity_id'
        }, {
            label: '卡片底色',
            type: 'color',
            code: 'card_color'
        }, {
            label: '文字颜色',
            type: 'color',
            code: 'text_color'
        }, {
            label: '按钮颜色',
            type: 'color',
            code: 'button_color'
        }],
        data: {
            activity_id: '',
            card_color: '',
            text_color: '',
            button_color: ''
        },
        rule: {
            activity_id: [{ required: true, message: '请选择关联活动' }]
        }
    },
    
    ACTIVITY_LIST: {
        name: '活动列表',
        config: [{
            label: '关联活动',
            type: 'select',
            options: 'activity',
            required: true,
            multiple: true,
            code: 'activity_id'
        }, {
            label: '点击参与文字颜色',
            type: 'color',
            code: 'join_text_color'
        }, {
            label: '点击参与按钮颜色',
            type: 'color',
            code: 'join_button_color'
        }, {
            label: '点击订阅文字颜色',
            type: 'color',
            code: 'subscribe_text_color'
        }, {
            label: '点击订阅按钮颜色',
            type: 'color',
            code: 'subscribe_button_color'
        }],
        data: {
            activity_id: '',
            join_text_color: '',
            join_button_color: '',
            subscribe_text_color: '',
            subscribe_button_color: ''
        },
        rule: {
            activity_id: [{ required: true, message: '请选择关联活动' }]
        }
    }
}